import request from '@/utils/request'

// 获取规则列表
export function getRuleListAPI(params) {
  return request({
    url: 'parking/rule/list',
    params
  })
}

// 创建规则
export function createRuleAPI(data) {
  return request({
    url: '/parking/rule',
    method: 'post',
    data
  })
}
